package com.yanqu.road.entity.activity.businessdepart;

import com.yanqu.road.entity.DataObject;

import java.util.Objects;

public class BusinessDepartDailyActive extends DataObject {

    /**
     * 玩家ID
     */
    private long userId;

    /**
     * 活动ID
     */
    private int activityId;

    /**
     * 日期
     */
    private String date;

    /**
     * 活跃值
     */
    private long active;

    /**
     * 创建时间
     */
    private long createTime;

    public BusinessDepartDailyActive() {
    }

    public BusinessDepartDailyActive(long userId, int activityId, String date, long active, long createTime) {
        this.userId = userId;
        this.activityId = activityId;
        this.date = date;
        this.active = active;
        this.createTime = createTime;
        setInsertOption();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        if (!Objects.equals(this.date, date)) {
            this.date = date;
            setUpdateOption();
        }
    }

    public long getActive() {
        return active;
    }

    public void setActive(long active) {
        if (this.active != active) {
            this.active = active;
            setUpdateOption();
        }
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        if (this.createTime != createTime) {
            this.createTime = createTime;
            setUpdateOption();
        }
    }
}
